<?php
include('../functions/db.php');
include('../functions/common.php');

$id_bloga = mres(($_POST['p']));
$komentar = mres(($_POST['komentar']));
$username = mres(($_POST['username']));
//$komentar = htmlentities($komentar);
insertCommentMessage($id_bloga, $komentar, $username);

$returnUrl=mres(($_GET['redirectUrl']));

header('Location: ../?page=' . $returnUrl . '&p='. $id_bloga);

?>
